package com.batchengine.task;

import static com.batchengine.Definitions.TaskType.PYTHON;
import com.batchengine.action.Action;
import static com.batchengine.action.ActionFactory.getInstance;
import static com.batchengine.util.LoggingFactory.createLogger;
import org.apache.log4j.Logger;

/**
 * User: sunil.incubator@yahoo.com
 * Date: Sep 20, 2009
 * Time: 10:43:35 PM
 */
public class PythonTask extends DefaultTask {

    private static final Logger logger = createLogger();

    public PythonTask() {
        super("PythonTask:" + Thread.currentThread());
    }

    protected PythonTask(String name) {
        super(name);
    }

    @Override
    public void execute(TaskContext context) {
        Action action = getInstance().createAction(PYTHON);
        action.execute(context);
    }

    @Override
    public TaskMode getTaskMode() {
        return null;
    }
}
